package com.zou.mall.member.fallback;

import com.zou.common.to.CategoryTo;
import com.zou.common.utils.R;
import com.zou.mall.member.feign.CategoryFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 熔断方法,快速失败
 */
@Slf4j
@Component
public class CategoryFeignServiceFallBack implements CategoryFeignService {
    @Override
    public R listTree2() {
        System.out.println("熔断方法调用");
        return new R();
    }

    @Override
    public R save(CategoryTo to) {
        return new R();
    }
}
